package com.wyh.day05.exercises;

/**
 * @author 王艺豪
 * @version 1.0
 */
public class Exercise05 {
    public static void main(String[] args) {

        System.out.println(jie(3));
    }
    //递归
    //阶乘
    public static int jie(int num) {
        if (num == 1) return 1;
        return num * jie(num - 1);
    }
}
